#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main()
{
	string s;string s2;
	while (cin >> s)
	{
		int n = s.size();
		char ch = toupper(s[0]);
		cout << ch;
		for (int i = 1; i < n; i++)
		{
			cout << s[i];
		}
		cout << ' ';
	}
	return 0;
}